#!/bin/bash
sudo chmod 777 *
sudo docker-compose down 
sudo docker-compose build
sudo docker-compose up -d
sleep 10
sudo docker cp gonsin_jenkins:/var/jenkins_home/secrets/initialAdminPassword initialAdminPassword
sudo cat initialAdminPassword
sudo rm initialAdminPassword -f
echo '打开jenkins网页，端口9999。打开后输入以上秘钥进行网页部分安装。'